package net.ericaro.neojavagen.blocks;

/**
 * <b>WhileStatementNoShortIf</b> ::= "while" "(" <{@link net .ericaro .neojavagen .expressions .Expression Expression}> ")" <
 * {@link net .ericaro .neojavagen .blocks .StatementNoShortIf StatementNoShortIf}>
 * 
 * @author eric@ericaro.net
 */
public class WhileStatementNoShortIf extends net.ericaro.neojavagen.JavaPartComposition implements net.ericaro.neojavagen.blocks.StatementNoShortIf {
	private net.ericaro.neojavagen.expressions.Expression expression;

	private net.ericaro.neojavagen.blocks.StatementNoShortIf statementNoShortIf;

	public WhileStatementNoShortIf(net.ericaro.neojavagen.expressions.Expression expression, net.ericaro.neojavagen.blocks.StatementNoShortIf statementNoShortIf) {
		super();
		this.expression = expression;
		this.statementNoShortIf = statementNoShortIf;
	}

	public net.ericaro.neojavagen.expressions.Expression getExpression() {
		return expression;
	}

	public net.ericaro.neojavagen.blocks.StatementNoShortIf getStatementNoShortIf() {
		return statementNoShortIf;
	}

	public void setExpression(net.ericaro.neojavagen.expressions.Expression expression) {
		this.expression = expression;
	}

	public void setStatementNoShortIf(net.ericaro.neojavagen.blocks.StatementNoShortIf statementNoShortIf) {
		this.statementNoShortIf = statementNoShortIf;
	}

	@Override
	public java.lang.String toString() {
		return print("while", "(", expression, ")", statementNoShortIf);
	}
}
